import request from '@/utils/request'

// 创建浏览记录
export const createHistory = data => {
  return request({
      method: 'POST',
      url: '/member/readHistory/create',
      data
  })
}
// 清空浏览记录
export const clearHistory = () => {
  return request({
      method: 'POST',
      url: '/member/readHistory/clear',
  })
}
// 删除浏览记录
export const deleteHistory = params => {
  return request({
      method: 'POST',
      url: '/member/readHistory/delete',
      params
  })
}
// 分页获取浏览记录
export const getHistory = params => {
  return request({
      method: 'GET',
      url: '/member/readHistory/list',
      params
  })
}